import request from '@/utils/request'
// 列表
export function getDataList(query) {
  return request({
    url: '/car/insurance/list',
    method: 'get',
    params: query
  })
}

// 查询详细 
export function getInsuranceDetails(id) {
  return request({
    url: '/car/insurance/' + id,
    method: 'get'
  })
}


// 删除
export function delInsurance(id) {
  return request({
    url: '/car/insurance/' + id,
    method: 'delete'
  })
}

// 编辑
export function updateInsurance(data) {
    return request({
      url: '/car/insurance',
      method: 'put',
      data: data
    })
  }